<?php
class Khenthuongkyluat extends AppModel {
	var $name = 'Khenthuongkyluat';
	var $validate = array(
		'loai_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'cap_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'khoa_id' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'hinhthuc_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Loai' => array(
			'className' => 'Loai',
			'foreignKey' => 'loai_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Cap' => array(
			'className' => 'Cap',
			'foreignKey' => 'cap_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Khoa' => array(
			'className' => 'Khoa',
			'foreignKey' => 'khoa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Hinhthuc' => array(
			'className' => 'Hinhthuc',
			'foreignKey' => 'hinhthuc_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
